package models;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;

import play.db.jpa.GenericModel;

@Entity
public class User extends Ceng433BaseModel {
  @Id
  long id;
  
  String name;
  String lastName;
  int rCount;
  
  public static List<User> getUserByName(String nameLike) {
    return  User.find("name like ?", nameLike).fetch();
    
  }
  
  public static User getUserById(String id) {
	    return  User.findById(id);
	  }
}
